package com.zhoujian.Bridge.abstractor;

public abstract class DriverManager {
    //1.依赖于抽象接口，而不是具体实现
    private Driver driver;
    //
    public Connection getConnection(){
        return driver.connect();
    }

    public void register(Driver driver){
        this.driver = driver;
    }
}
